home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97b.txt / 000064_icon-group-sender _Tue Sep 16 07:59:59 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id HAA07303
  4.     for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Tue, 16 Sep 1997 07:59:59 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA02966; Tue, 16 Sep 1997 07:59:58 -0700
  7. To: icon-group@cs.arizona.edu
  8. Date: Tue, 16 Sep 1997 13:48:04 +1000
  9. From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
  10. Message-Id: <Stuart.Robinson-1609971348050001@asianstmg-221.anu.edu.au>
  11. Organization: ANU
  12. Sender: icon-group-request@cs.arizona.edu
  13. References: <Stuart.Robinson-0209971451430001@asianstmg-221.anu.edu.au>, <340CAD3F.3446@Japan.NCR.com>
  14. Subject: Re: GREP
  15. Errors-To: icon-group-errors@cs.arizona.edu
  16. Status: RO
  17.  
  18.  
  19. I'm sorry I never replied to your posting, Eric.  To give you an idea of
  20. the kind of searching, I'm doing, let me use an example from English,
  21. since everyone who can read this must speak it.  (Most of my text searches
  22. are actually on Tzotzil, a Mayan languages spoken in Mexico.)
  23.  
  24. Let's say I'm looking for relative clauses.  I could just look for "who",
  25. "that", or "which", but I'd get a lot of things that aren't relative
  26. clauses. For example,
  27.  
  28. Who went to the store?
  29. That man is a jerk.
  30. I saw that your arm was broken.
  31. Which store sells lolly pops?
  32.  
  33.  
  34. So I need way of looking for patterns and I need to be able to do it on
  35. multiple files.  That's where BBEdit's multi-file and GREP search
  36. capabilities come in handy.  I can use regexes like the following to find
  37. relative clauses:
  38.  
  39. the[A-Za-z' ](that|who|((, )?which))
  40.  
  41. (I think that would work, although I haven't tested it.)  I don't know of
  42. a quick and dirty way of doing the same with Icon (especially since I
  43. don't know off-hand how to get ProIcon--for the Mac--to use multiple files
  44. as input).
  45.  
  46. Cheers,
  47. Stuart
  48.  
  49. In article <340CAD3F.3446@Japan.NCR.com>, Eric.Hildum@Japan.NCR.com wrote:
  50.  
  51. > That must be a very complicated search pattern if programing in Icon is
  52. > not worth the time! Would you post some examples? Perhaps the group
  53. > could give you some suggestions.
  54.  
  55. -- 
  56. Stuart Robinson <Stuart.Robinson@no_spam!anu.edu.au>
  57. The Australian National University
  58. *TO REPLY, REMOVE "no_spam!" FROM E-MAIL ADDRESS GIVEN ABOVE
  59.